#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <opencv/cv.h>
#include <opencv/highgui.h>
#include "CaptureThread.h"
#include "Language.h"
#include "CameraDialog.h"
#include "PlayThread.h"

using namespace cv;

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow {
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    
private:
    Ui::MainWindow *ui;
    CaptureThread  *capThread;
    PlayThread     *playThread;
    Language       *lang;
    CameraDialog   *camDialog;
    Camera_Params   camParams;

public slots:
    void prepare_connection();
    void disconnect_camera();
    void ready_camera();
    void call_startThread();
    void change_statusApp(QString texto);
    void showNextFrame();
    void print_frame(Mat &frame);

signals:
    void startThread();
    void noMoreFrames();
private slots:
    void on_pushButton_2_clicked();
};

#endif // MAINWINDOW_H
